package csci5115.autoalarm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class reminder extends Activity {

	Button btnSnooze, btnStop;
	TextView txtQuickReminder;
	int intCounter = 0;
	
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.reminder);      
        
        btnSnooze = (Button) findViewById(R.id.btnSnooze);
        btnStop = (Button) findViewById(R.id.btnStop);

        btnSnooze.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
//				Intent myIntent = new Intent(getBaseContext(), appointmentreminder.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
//			
//				//Save information to global variables
//				
//				//myIntent.putExtra("EventID", EventID);
//				startActivity(myIntent);
				
				//close current activity
				finish();
			}
		});
        
        btnStop.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent myIntent = new Intent(getBaseContext(), appointmentreminder.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);				

				//Save information to global variables
				
				//myIntent.putExtra("EventID", EventID);
				startActivity(myIntent);
				
				//close current activity
				finish();
			}
		});
	}
}
